import render from "./render"

export default class render2D extends render {
  constructor() {
    super()
    this.ctx = canvas.getContext('2d')
  }
  drawImage0(image, dx, dy, dw, dh, dz = 1){
    this.ctx.drawImage(image, dx, dy, dw, dh)
  }
  clearRect(x, y, w, h, first){
    this.ctx.clearRect(x, y, w, h)
  }
  fillText(text, x, y, maxWidth){
    this.ctx.fillText(text, x, y, maxWidth)
  }
  setFont(fillStyle, font){
    this.ctx.fillStyle = fillStyle
    this.ctx.font = font
  }
}